﻿


/*========================================================================================
//Goodasong -- MySnake
//创建者: 郑雪松
//创建时间：2012年12月19日
//类描述：实体类 BdOrder (属性说明自动提取数据库字段的描述信息)
//最后修改者:郑雪松
//最后修改时间:2012年12月19日	
=========================================================================================*/
using System;
using System.Web;
using System.Runtime.Serialization;

namespace COM.Rights.Model
{
    /// <summary>
    /// 实体类 BdOrder (属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]	  
    [Model(Name = "BdOrder", PrimaryKey = "Orders_ID", ModelType = ModelType.Table, Condition = "1=1", IsNeedRecordModify = true)]
    public partial class BdOrderInfo : BaseModel
    {
        public BdOrderInfo()
        {            
            PrimaryKey = "Orders_ID"; 
			Fields.Add("Orders_ID");//ID
			Fields.Add("OrderNo");//订单编号
			Fields.Add("ProductStruct");//产品
			Fields.Add("Quantity");//数量
			Fields.Add("Amount");//金额
			Fields.Add("Receiver");//客户姓名
			Fields.Add("Province");//省
			Fields.Add("City");//市
			Fields.Add("District");//区
			Fields.Add("ReceiverAddress");//详细地址
			Fields.Add("Postcode");//邮编
			Fields.Add("Mobile");//手机
			Fields.Add("ReceiverTel");//座机
			Fields.Add("PayModeRemark");//付款方式
			Fields.Add("ShipDateRemark");//发货时间
			Fields.Add("Remark");//备注
			Fields.Add("HostName");//域名
			Fields.Add("CustomerIP");//客户IP
			Fields.Add("CreateDate");//创建时间
			Fields.Add("OrderDate");//下单时间
			Fields.Add("OrderStatus");//订单状态
			Fields.Add("NewOrderNo");//新订单编号
			Fields.Add("SessionID");//Session编号
			Fields.Add("Refers");//来源
			Fields.Add("Editby");//编辑人
			Fields.Add("Updatedate");//更新日期
			Fields.Add("Age");//年龄
			Fields.Add("Height");//身高
			Fields.Add("Weight");//体重
			Fields.Add("Receipt");//收据
			Fields.Add("OrderMode");//下单方式
			Fields.Add("IsSecurity");//是否保密包装
			Fields.Add("IsAliPay");//是否支付
			Fields.Add("Customer_ID");//客户编号
			Fields.Add("IsDelete");//IsDelete
			
			
			CanNotNullFields.Add("Orders_ID");//ID不能为空!				
			
			CanNotNullFields.Add("OrderNo");//订单编号不能为空!				
			
			CanNotNullFields.Add("Amount");//金额不能为空!				
			
			CanNotNullFields.Add("OrderDate");//下单时间不能为空!				
			
			CanNotNullFields.Add("OrderStatus");//订单状态不能为空!				
			this.OnCreated();			
			this.OnModelCreated();
        }
		public BdOrderInfo(bool isNewInfo):this()
        {
			IsNew = isNewInfo;
		}
		#region 方法

        public void OnCreated() { this.SetPrimaryKeyValue(); }		

		public override void SetPrimaryKeyValue()
        {
			
            Orders_ID = Guid.NewGuid();
        }
        #endregion 
		
		#region 成员变量
				
		private Guid _Orders_ID;//ID
		private string _OrderNo;//订单编号
		private string _ProductStruct;//产品
		private int? _Quantity;//数量
		private int? _Amount;//金额
		private string _Receiver;//客户姓名
		private string _Province;//省
		private string _City;//市
		private string _District;//区
		private string _ReceiverAddress;//详细地址
		private string _Postcode;//邮编
		private string _Mobile;//手机
		private string _ReceiverTel;//座机
		private string _PayModeRemark;//付款方式
		private string _ShipDateRemark;//发货时间
		private string _Remark;//备注
		private string _HostName;//域名
		private string _CustomerIP;//客户IP
		private DateTime? _CreateDate;//创建时间
		private DateTime? _OrderDate;//下单时间
		private string _OrderStatus;//订单状态
		private string _NewOrderNo;//新订单编号
		private string _SessionID;//Session编号
		private string _Refers;//来源
		private string _Editby;//编辑人
		private DateTime? _Updatedate;//更新日期
		private string _Age;//年龄
		private string _Height;//身高
		private string _Weight;//体重
		private int? _Receipt;//收据
		private int? _OrderMode;//下单方式
		private bool? _IsSecurity;//是否保密包装
		private bool? _IsAliPay;//是否支付
		private string _Customer_ID;//客户编号
		private bool? _IsDelete;//IsDelete
		
		#endregion
		
		#region 属性 
		
		/// <summary>
        /// ID
        /// </summary>       
		[ModelField(Description = "ID", Type = typeof(Guid), ErrorMessage = "ID信息错误!", FieldType = FieldType.Normal, IsKeyField = true,IsUnique = true, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 16,  DbType = "uniqueidentifier", IsNeedRecordModify = true)]
        public virtual Guid Orders_ID
        {
            get
            {
                return this._Orders_ID;
            }
            set
            {
                if (_Orders_ID != value || (_Orders_ID == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Orders_ID", _Orders_ID, value, "uniqueidentifier", "ID");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrders_IDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Orders_ID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrders_IDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Orders_ID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 订单编号
        /// </summary>       
		[ModelField(Description = "订单编号", Type = typeof(string), ErrorMessage = "订单编号信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 20,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string OrderNo
        {
            get
            {
                return this._OrderNo;
            }
            set
            {
                if (_OrderNo != value || (_OrderNo == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "OrderNo", _OrderNo, value, "varchar", "订单编号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrderNoChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._OrderNo = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrderNoChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _OrderNo = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 产品
        /// </summary>       
		[ModelField(Description = "产品", Type = typeof(string), ErrorMessage = "产品信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8000,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string ProductStruct
        {
            get
            {
                return this._ProductStruct;
            }
            set
            {
                if (_ProductStruct != value || (_ProductStruct == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "ProductStruct", _ProductStruct, value, "varchar", "产品");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnProductStructChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._ProductStruct = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnProductStructChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _ProductStruct = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 数量
        /// </summary>       
		[ModelField(Description = "数量", Type = typeof(int?), ErrorMessage = "数量信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Quantity
        {
            get
            {
                return this._Quantity;
            }
            set
            {
                if (_Quantity != value || (_Quantity == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Quantity", _Quantity, value, "int", "数量");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnQuantityChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Quantity = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnQuantityChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Quantity = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 金额
        /// </summary>       
		[ModelField(Description = "金额", Type = typeof(int?), ErrorMessage = "金额信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Amount
        {
            get
            {
                return this._Amount;
            }
            set
            {
                if (_Amount != value || (_Amount == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Amount", _Amount, value, "int", "金额");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnAmountChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Amount = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnAmountChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Amount = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 客户姓名
        /// </summary>       
		[ModelField(Description = "客户姓名", Type = typeof(string), ErrorMessage = "客户姓名信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Receiver
        {
            get
            {
                return this._Receiver;
            }
            set
            {
                if (_Receiver != value || (_Receiver == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Receiver", _Receiver, value, "varchar", "客户姓名");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnReceiverChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Receiver = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnReceiverChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Receiver = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 省
        /// </summary>       
		[ModelField(Description = "省", Type = typeof(string), ErrorMessage = "省信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 20,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Province
        {
            get
            {
                return this._Province;
            }
            set
            {
                if (_Province != value || (_Province == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Province", _Province, value, "varchar", "省");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnProvinceChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Province = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnProvinceChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Province = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 市
        /// </summary>       
		[ModelField(Description = "市", Type = typeof(string), ErrorMessage = "市信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 20,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string City
        {
            get
            {
                return this._City;
            }
            set
            {
                if (_City != value || (_City == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "City", _City, value, "varchar", "市");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCityChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._City = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCityChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _City = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 区
        /// </summary>       
		[ModelField(Description = "区", Type = typeof(string), ErrorMessage = "区信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 40,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string District
        {
            get
            {
                return this._District;
            }
            set
            {
                if (_District != value || (_District == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "District", _District, value, "nvarchar", "区");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnDistrictChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._District = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnDistrictChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _District = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 详细地址
        /// </summary>       
		[ModelField(Description = "详细地址", Type = typeof(string), ErrorMessage = "详细地址信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 200,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string ReceiverAddress
        {
            get
            {
                return this._ReceiverAddress;
            }
            set
            {
                if (_ReceiverAddress != value || (_ReceiverAddress == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "ReceiverAddress", _ReceiverAddress, value, "nvarchar", "详细地址");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnReceiverAddressChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._ReceiverAddress = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnReceiverAddressChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _ReceiverAddress = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 邮编
        /// </summary>       
		[ModelField(Description = "邮编", Type = typeof(string), ErrorMessage = "邮编信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 6,  DbType = "char", IsNeedRecordModify = true)]
        public virtual string Postcode
        {
            get
            {
                return this._Postcode;
            }
            set
            {
                if (_Postcode != value || (_Postcode == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Postcode", _Postcode, value, "char", "邮编");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPostcodeChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Postcode = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPostcodeChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Postcode = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 手机
        /// </summary>       
		[ModelField(Description = "手机", Type = typeof(string), ErrorMessage = "手机信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Mobile
        {
            get
            {
                return this._Mobile;
            }
            set
            {
                if (_Mobile != value || (_Mobile == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Mobile", _Mobile, value, "varchar", "手机");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnMobileChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Mobile = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnMobileChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Mobile = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 座机
        /// </summary>       
		[ModelField(Description = "座机", Type = typeof(string), ErrorMessage = "座机信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string ReceiverTel
        {
            get
            {
                return this._ReceiverTel;
            }
            set
            {
                if (_ReceiverTel != value || (_ReceiverTel == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "ReceiverTel", _ReceiverTel, value, "varchar", "座机");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnReceiverTelChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._ReceiverTel = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnReceiverTelChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _ReceiverTel = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 付款方式
        /// </summary>       
		[ModelField(Description = "付款方式", Type = typeof(string), ErrorMessage = "付款方式信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 200,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string PayModeRemark
        {
            get
            {
                return this._PayModeRemark;
            }
            set
            {
                if (_PayModeRemark != value || (_PayModeRemark == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "PayModeRemark", _PayModeRemark, value, "nvarchar", "付款方式");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPayModeRemarkChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._PayModeRemark = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPayModeRemarkChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _PayModeRemark = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 发货时间
        /// </summary>       
		[ModelField(Description = "发货时间", Type = typeof(string), ErrorMessage = "发货时间信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 200,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string ShipDateRemark
        {
            get
            {
                return this._ShipDateRemark;
            }
            set
            {
                if (_ShipDateRemark != value || (_ShipDateRemark == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "ShipDateRemark", _ShipDateRemark, value, "nvarchar", "发货时间");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnShipDateRemarkChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._ShipDateRemark = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnShipDateRemarkChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _ShipDateRemark = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 备注
        /// </summary>       
		[ModelField(Description = "备注", Type = typeof(string), ErrorMessage = "备注信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1000,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string Remark
        {
            get
            {
                return this._Remark;
            }
            set
            {
                if (_Remark != value || (_Remark == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Remark", _Remark, value, "nvarchar", "备注");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnRemarkChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Remark = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnRemarkChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Remark = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 域名
        /// </summary>       
		[ModelField(Description = "域名", Type = typeof(string), ErrorMessage = "域名信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string HostName
        {
            get
            {
                return this._HostName;
            }
            set
            {
                if (_HostName != value || (_HostName == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "HostName", _HostName, value, "varchar", "域名");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnHostNameChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._HostName = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnHostNameChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _HostName = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 客户IP
        /// </summary>       
		[ModelField(Description = "客户IP", Type = typeof(string), ErrorMessage = "客户IP信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 30,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string CustomerIP
        {
            get
            {
                return this._CustomerIP;
            }
            set
            {
                if (_CustomerIP != value || (_CustomerIP == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "CustomerIP", _CustomerIP, value, "varchar", "客户IP");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCustomerIPChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._CustomerIP = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCustomerIPChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _CustomerIP = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 创建时间
        /// </summary>       
		[ModelField(Description = "创建时间", Type = typeof(DateTime?), ErrorMessage = "创建时间信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? CreateDate
        {
            get
            {
                return this._CreateDate;
            }
            set
            {
                if (_CreateDate != value || (_CreateDate == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "CreateDate", _CreateDate, value, "datetime", "创建时间");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCreateDateChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._CreateDate = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCreateDateChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _CreateDate = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 下单时间
        /// </summary>       
		[ModelField(Description = "下单时间", Type = typeof(DateTime?), ErrorMessage = "下单时间信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? OrderDate
        {
            get
            {
                return this._OrderDate;
            }
            set
            {
                if (_OrderDate != value || (_OrderDate == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "OrderDate", _OrderDate, value, "datetime", "下单时间");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrderDateChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._OrderDate = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrderDateChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _OrderDate = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 订单状态
        /// </summary>       
		[ModelField(Description = "订单状态", Type = typeof(string), ErrorMessage = "订单状态信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 2,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string OrderStatus
        {
            get
            {
                return this._OrderStatus;
            }
            set
            {
                if (_OrderStatus != value || (_OrderStatus == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "OrderStatus", _OrderStatus, value, "varchar", "订单状态");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrderStatusChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._OrderStatus = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrderStatusChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _OrderStatus = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 新订单编号
        /// </summary>       
		[ModelField(Description = "新订单编号", Type = typeof(string), ErrorMessage = "新订单编号信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 20,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string NewOrderNo
        {
            get
            {
                return this._NewOrderNo;
            }
            set
            {
                if (_NewOrderNo != value || (_NewOrderNo == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "NewOrderNo", _NewOrderNo, value, "varchar", "新订单编号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnNewOrderNoChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._NewOrderNo = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnNewOrderNoChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _NewOrderNo = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// Session编号
        /// </summary>       
		[ModelField(Description = "Session编号", Type = typeof(string), ErrorMessage = "Session编号信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string SessionID
        {
            get
            {
                return this._SessionID;
            }
            set
            {
                if (_SessionID != value || (_SessionID == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "SessionID", _SessionID, value, "varchar", "Session编号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnSessionIDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._SessionID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnSessionIDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _SessionID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 来源
        /// </summary>       
		[ModelField(Description = "来源", Type = typeof(string), ErrorMessage = "来源信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 500,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string Refers
        {
            get
            {
                return this._Refers;
            }
            set
            {
                if (_Refers != value || (_Refers == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Refers", _Refers, value, "nvarchar", "来源");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnRefersChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Refers = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnRefersChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Refers = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 编辑人
        /// </summary>       
		[ModelField(Description = "编辑人", Type = typeof(string), ErrorMessage = "编辑人信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Editby
        {
            get
            {
                return this._Editby;
            }
            set
            {
                if (_Editby != value || (_Editby == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Editby", _Editby, value, "varchar", "编辑人");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnEditbyChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Editby = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnEditbyChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Editby = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 更新日期
        /// </summary>       
		[ModelField(Description = "更新日期", Type = typeof(DateTime?), ErrorMessage = "更新日期信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? Updatedate
        {
            get
            {
                return this._Updatedate;
            }
            set
            {
                if (_Updatedate != value || (_Updatedate == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Updatedate", _Updatedate, value, "datetime", "更新日期");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnUpdatedateChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Updatedate = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnUpdatedateChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Updatedate = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 年龄
        /// </summary>       
		[ModelField(Description = "年龄", Type = typeof(string), ErrorMessage = "年龄信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Age
        {
            get
            {
                return this._Age;
            }
            set
            {
                if (_Age != value || (_Age == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Age", _Age, value, "varchar", "年龄");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnAgeChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Age = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnAgeChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Age = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 身高
        /// </summary>       
		[ModelField(Description = "身高", Type = typeof(string), ErrorMessage = "身高信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Height
        {
            get
            {
                return this._Height;
            }
            set
            {
                if (_Height != value || (_Height == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Height", _Height, value, "varchar", "身高");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnHeightChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Height = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnHeightChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Height = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 体重
        /// </summary>       
		[ModelField(Description = "体重", Type = typeof(string), ErrorMessage = "体重信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Weight
        {
            get
            {
                return this._Weight;
            }
            set
            {
                if (_Weight != value || (_Weight == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Weight", _Weight, value, "varchar", "体重");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnWeightChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Weight = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnWeightChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Weight = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 收据
        /// </summary>       
		[ModelField(Description = "收据", Type = typeof(int?), ErrorMessage = "收据信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Receipt
        {
            get
            {
                return this._Receipt;
            }
            set
            {
                if (_Receipt != value || (_Receipt == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Receipt", _Receipt, value, "int", "收据");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnReceiptChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Receipt = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnReceiptChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Receipt = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 下单方式
        /// </summary>       
		[ModelField(Description = "下单方式", Type = typeof(int?), ErrorMessage = "下单方式信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? OrderMode
        {
            get
            {
                return this._OrderMode;
            }
            set
            {
                if (_OrderMode != value || (_OrderMode == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "OrderMode", _OrderMode, value, "int", "下单方式");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnOrderModeChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._OrderMode = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnOrderModeChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _OrderMode = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 是否保密包装
        /// </summary>       
		[ModelField(Description = "是否保密包装", Type = typeof(bool?), ErrorMessage = "是否保密包装信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "bit", IsNeedRecordModify = true)]
        public virtual bool? IsSecurity
        {
            get
            {
                return this._IsSecurity;
            }
            set
            {
                if (_IsSecurity != value || (_IsSecurity == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "IsSecurity", _IsSecurity, value, "bit", "是否保密包装");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIsSecurityChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._IsSecurity = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIsSecurityChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _IsSecurity = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 是否支付
        /// </summary>       
		[ModelField(Description = "是否支付", Type = typeof(bool?), ErrorMessage = "是否支付信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "bit", IsNeedRecordModify = true)]
        public virtual bool? IsAliPay
        {
            get
            {
                return this._IsAliPay;
            }
            set
            {
                if (_IsAliPay != value || (_IsAliPay == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "IsAliPay", _IsAliPay, value, "bit", "是否支付");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIsAliPayChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._IsAliPay = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIsAliPayChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _IsAliPay = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 客户编号
        /// </summary>       
		[ModelField(Description = "客户编号", Type = typeof(string), ErrorMessage = "客户编号信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 36,  DbType = "char", IsNeedRecordModify = true)]
        public virtual string Customer_ID
        {
            get
            {
                return this._Customer_ID;
            }
            set
            {
                if (_Customer_ID != value || (_Customer_ID == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "Customer_ID", _Customer_ID, value, "char", "客户编号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCustomer_IDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Customer_ID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCustomer_IDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Customer_ID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// IsDelete
        /// </summary>       
		[ModelField(Description = "IsDelete", Type = typeof(bool?), ErrorMessage = "IsDelete信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "bit", IsNeedRecordModify = true)]
        public virtual bool? IsDelete
        {
            get
            {
                return this._IsDelete;
            }
            set
            {
                if (_IsDelete != value || (_IsDelete == null && value == null))
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("BdOrder", "IsDelete", _IsDelete, value, "bit", "IsDelete");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIsDeleteChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._IsDelete = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIsDeleteChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _IsDelete = value;
                    }
                }
            }
        }
		#endregion 属性
				  
		#region 属性更改事件
		
		partial void OnOrders_IDChanging(ModifyInfo modifyInfo);//IDOrders_ID改变之前发生
        partial void OnOrders_IDChanged(ModifyInfo modifyInfo);//IDOrders_ID改变之后发生
		partial void OnOrderNoChanging(ModifyInfo modifyInfo);//订单编号OrderNo改变之前发生
        partial void OnOrderNoChanged(ModifyInfo modifyInfo);//订单编号OrderNo改变之后发生
		partial void OnProductStructChanging(ModifyInfo modifyInfo);//产品ProductStruct改变之前发生
        partial void OnProductStructChanged(ModifyInfo modifyInfo);//产品ProductStruct改变之后发生
		partial void OnQuantityChanging(ModifyInfo modifyInfo);//数量Quantity改变之前发生
        partial void OnQuantityChanged(ModifyInfo modifyInfo);//数量Quantity改变之后发生
		partial void OnAmountChanging(ModifyInfo modifyInfo);//金额Amount改变之前发生
        partial void OnAmountChanged(ModifyInfo modifyInfo);//金额Amount改变之后发生
		partial void OnReceiverChanging(ModifyInfo modifyInfo);//客户姓名Receiver改变之前发生
        partial void OnReceiverChanged(ModifyInfo modifyInfo);//客户姓名Receiver改变之后发生
		partial void OnProvinceChanging(ModifyInfo modifyInfo);//省Province改变之前发生
        partial void OnProvinceChanged(ModifyInfo modifyInfo);//省Province改变之后发生
		partial void OnCityChanging(ModifyInfo modifyInfo);//市City改变之前发生
        partial void OnCityChanged(ModifyInfo modifyInfo);//市City改变之后发生
		partial void OnDistrictChanging(ModifyInfo modifyInfo);//区District改变之前发生
        partial void OnDistrictChanged(ModifyInfo modifyInfo);//区District改变之后发生
		partial void OnReceiverAddressChanging(ModifyInfo modifyInfo);//详细地址ReceiverAddress改变之前发生
        partial void OnReceiverAddressChanged(ModifyInfo modifyInfo);//详细地址ReceiverAddress改变之后发生
		partial void OnPostcodeChanging(ModifyInfo modifyInfo);//邮编Postcode改变之前发生
        partial void OnPostcodeChanged(ModifyInfo modifyInfo);//邮编Postcode改变之后发生
		partial void OnMobileChanging(ModifyInfo modifyInfo);//手机Mobile改变之前发生
        partial void OnMobileChanged(ModifyInfo modifyInfo);//手机Mobile改变之后发生
		partial void OnReceiverTelChanging(ModifyInfo modifyInfo);//座机ReceiverTel改变之前发生
        partial void OnReceiverTelChanged(ModifyInfo modifyInfo);//座机ReceiverTel改变之后发生
		partial void OnPayModeRemarkChanging(ModifyInfo modifyInfo);//付款方式PayModeRemark改变之前发生
        partial void OnPayModeRemarkChanged(ModifyInfo modifyInfo);//付款方式PayModeRemark改变之后发生
		partial void OnShipDateRemarkChanging(ModifyInfo modifyInfo);//发货时间ShipDateRemark改变之前发生
        partial void OnShipDateRemarkChanged(ModifyInfo modifyInfo);//发货时间ShipDateRemark改变之后发生
		partial void OnRemarkChanging(ModifyInfo modifyInfo);//备注Remark改变之前发生
        partial void OnRemarkChanged(ModifyInfo modifyInfo);//备注Remark改变之后发生
		partial void OnHostNameChanging(ModifyInfo modifyInfo);//域名HostName改变之前发生
        partial void OnHostNameChanged(ModifyInfo modifyInfo);//域名HostName改变之后发生
		partial void OnCustomerIPChanging(ModifyInfo modifyInfo);//客户IPCustomerIP改变之前发生
        partial void OnCustomerIPChanged(ModifyInfo modifyInfo);//客户IPCustomerIP改变之后发生
		partial void OnCreateDateChanging(ModifyInfo modifyInfo);//创建时间CreateDate改变之前发生
        partial void OnCreateDateChanged(ModifyInfo modifyInfo);//创建时间CreateDate改变之后发生
		partial void OnOrderDateChanging(ModifyInfo modifyInfo);//下单时间OrderDate改变之前发生
        partial void OnOrderDateChanged(ModifyInfo modifyInfo);//下单时间OrderDate改变之后发生
		partial void OnOrderStatusChanging(ModifyInfo modifyInfo);//订单状态OrderStatus改变之前发生
        partial void OnOrderStatusChanged(ModifyInfo modifyInfo);//订单状态OrderStatus改变之后发生
		partial void OnNewOrderNoChanging(ModifyInfo modifyInfo);//新订单编号NewOrderNo改变之前发生
        partial void OnNewOrderNoChanged(ModifyInfo modifyInfo);//新订单编号NewOrderNo改变之后发生
		partial void OnSessionIDChanging(ModifyInfo modifyInfo);//Session编号SessionID改变之前发生
        partial void OnSessionIDChanged(ModifyInfo modifyInfo);//Session编号SessionID改变之后发生
		partial void OnRefersChanging(ModifyInfo modifyInfo);//来源Refers改变之前发生
        partial void OnRefersChanged(ModifyInfo modifyInfo);//来源Refers改变之后发生
		partial void OnEditbyChanging(ModifyInfo modifyInfo);//编辑人Editby改变之前发生
        partial void OnEditbyChanged(ModifyInfo modifyInfo);//编辑人Editby改变之后发生
		partial void OnUpdatedateChanging(ModifyInfo modifyInfo);//更新日期Updatedate改变之前发生
        partial void OnUpdatedateChanged(ModifyInfo modifyInfo);//更新日期Updatedate改变之后发生
		partial void OnAgeChanging(ModifyInfo modifyInfo);//年龄Age改变之前发生
        partial void OnAgeChanged(ModifyInfo modifyInfo);//年龄Age改变之后发生
		partial void OnHeightChanging(ModifyInfo modifyInfo);//身高Height改变之前发生
        partial void OnHeightChanged(ModifyInfo modifyInfo);//身高Height改变之后发生
		partial void OnWeightChanging(ModifyInfo modifyInfo);//体重Weight改变之前发生
        partial void OnWeightChanged(ModifyInfo modifyInfo);//体重Weight改变之后发生
		partial void OnReceiptChanging(ModifyInfo modifyInfo);//收据Receipt改变之前发生
        partial void OnReceiptChanged(ModifyInfo modifyInfo);//收据Receipt改变之后发生
		partial void OnOrderModeChanging(ModifyInfo modifyInfo);//下单方式OrderMode改变之前发生
        partial void OnOrderModeChanged(ModifyInfo modifyInfo);//下单方式OrderMode改变之后发生
		partial void OnIsSecurityChanging(ModifyInfo modifyInfo);//是否保密包装IsSecurity改变之前发生
        partial void OnIsSecurityChanged(ModifyInfo modifyInfo);//是否保密包装IsSecurity改变之后发生
		partial void OnIsAliPayChanging(ModifyInfo modifyInfo);//是否支付IsAliPay改变之前发生
        partial void OnIsAliPayChanged(ModifyInfo modifyInfo);//是否支付IsAliPay改变之后发生
		partial void OnCustomer_IDChanging(ModifyInfo modifyInfo);//客户编号Customer_ID改变之前发生
        partial void OnCustomer_IDChanged(ModifyInfo modifyInfo);//客户编号Customer_ID改变之后发生
		partial void OnIsDeleteChanging(ModifyInfo modifyInfo);//IsDeleteIsDelete改变之前发生
        partial void OnIsDeleteChanged(ModifyInfo modifyInfo);//IsDeleteIsDelete改变之后发生
		
		#endregion		
		public virtual string DetailURI { get; set; }
        public virtual string DetailHTMLURI { get; set; }
		public virtual string ManageEditURI {get; set;}
		public virtual string ManageDetailURI {get; set;}
		public override void OnLoaded()
        {
            base.OnLoaded();	
			DetailURI = ZModel.InitDetailURI("BdOrder", "Orders_ID", Orders_ID);
            DetailHTMLURI = ZModel.InitDetailHTMLURI("BdOrder", "Orders_ID", Orders_ID);		
			ManageEditURI = ZModel.InitMEditURI("BdOrder", "Orders_ID", Orders_ID);	
		 	ManageDetailURI = ZModel.InitMDetailURI("BdOrder", "Orders_ID", Orders_ID);	
			OnModelLoaded();
        }
		
		partial void OnModelCreated();
        partial void OnModelLoaded();
	}	
}